package com.ly.pj.goods.pojo;

import lombok.*;

import java.util.Date;
/*@Getter//set方法
@Setter//get方法
@ToString//toString方法*/
@Data//相当于@Getter、@Setter、@ToString
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
/**
 * 添加lombok插件可以通过注解的方式去代替写方法
 */
public class Goods {

    private Integer id;
    private String name;
    private String remark;
    private Date createdTime;

    public static void main(String[] args) {
        Goods goods=new Goods();
        goods.getCreatedTime();
        goods.setId(1);
        goods.toString();
    }

    /*public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", createdTime=" + createdTime +
                '}';
    }*/
}
